package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 转换输入流读取文本数据
 */
public class IRSDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("./src/main/java/io/IRSDemo.java");
        InputStreamReader isr = new InputStreamReader(fis);
        int d;
        while ((d=isr.read()) != -1){
            System.out.print((char)d);
        }
        isr.close();

    }
}
